package test.y2019.june;

import cn.hutool.core.lang.Console;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author 宋贤坤
 * @date 2019/7/17 14:30
 */
public class test {

    public static void main(String[] args) {

        BigDecimal dividePlatForm = new BigDecimal(100).divide(new BigDecimal(100), 2, RoundingMode.HALF_UP);

        Console.error(dividePlatForm);

    }

    private static CompletableFuture<Integer> m1() {
        return CompletableFuture.supplyAsync(() -> {
            try {
                TimeUnit.SECONDS.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return 2333;
        });
    }

}
